package com.blue.service.impl;

import com.blue.dao.AccountDao;
import com.blue.factory.BeanFactory;
import com.blue.service.AccountService;

/**
 * @BelongsProject: mytest
 * @BelongsPackage: com.blue.service.impl
 * @Author: wsh
 * @CreateTime: 2020-04-08 22:11
 */
public class AccountServiceImpl implements AccountService {
    //利用工厂创建对象
    private AccountDao accountDao=(AccountDao)BeanFactory.getBean("accountDao");

    @Override
    public void save() {
        int i = 1;

        System.out.println(i++);
        accountDao.save();
    }
}
